package com.slz.crm.common.annotation;

import com.slz.crm.common.enumeration.PermissionOperates;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface RequirePermission {
    /**
     * 权限枚举
     */
    Class<? extends Enum<? extends PermissionOperates.Operation>> permClass();

    /**
     * 权限枚举值
     */
    String permName();
}
